//
//  TDHomeViewC.m
//  TBRentClient
//
//  Created by tonbright on 2018/6/4.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "TDHomeViewC.h"
#import "TDHomeShowCarHeadView.h"
#import "TDHomeShowCarCell.h"
@interface TDHomeViewC ()<UITableViewDelegate, UITableViewDataSource>
@property (nonatomic, strong) UITableView      *tableView;
@property (nonatomic,strong)TDHomeShowCarHeadView *homeShowCarHeadView;
@end

@implementation TDHomeViewC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)setupUI {
    //设置导航条
    [self setupNavItem];
    
    //添加tableView
    [self setupTableView];
}

- (void)setupNavItem {
    [self ISG_NavigationBarRightBarWithTitle:nil rightImageNamed:@"scanImg" andAction:@selector(scanCode)];
}

- (void)setupTableView {
    self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStylePlain];
    [self.view addSubview:self.tableView];
    self.tableView.backgroundColor = [UIColor colorWithHex:0xfafafa];
    [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.trailing.top.bottom.offset(0);
    }];
    self.tableView.delegate = self;
    self.tableView.dataSource = self;
    self.tableView.tableFooterView = [UIView new];
    self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.tableView.showsVerticalScrollIndicator = NO;
    
    _homeShowCarHeadView = [TDHomeShowCarHeadView homeShowCarHeadView];
}

@end
